/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package forms;

import com.sun.lwuit.Command;
import com.sun.lwuit.events.ActionEvent;
import domain.model.IRegistro;

/**
 *
 * @author ademar.victorino
 */
public class MapaForm extends AbstractForm {

    private IRegistro reg;
    private AbstractForm returnForm;
    
    public MapaForm() {
        super();
        setTitle("MapaForm");

        addCommand(new Command("Voltar") {
            public void actionPerformed(ActionEvent evt) {
                returnForm.show();
            }
        });
        
        addCommand(new Command("Afastar") {
            public void actionPerformed(ActionEvent evt) {
                
            }
        });
        
        addCommand(new Command("Aproximar") {
            public void actionPerformed(ActionEvent evt) {

            }
        });

    }

    void show(IRegistro reg, AbstractForm returnForm) {
        super.show();
        this.returnForm = returnForm;
        this.reg = reg;
    }
}
